home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
mailbox.z
/
mailbox
Wrap
Text File
|
1998-10-20
|
13KB
|
265 lines
mmmmaaaaiiiillllbbbbooooxxxx((((1111)))) mmmmaaaaiiiillllbbbbooooxxxx((((1111))))
NNNNAAAAMMMMEEEE
mailbox - mail notification
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
mmmmaaaaiiiillllbbbbooooxxxx [ ----ccccllllbbbbdddd ] [ ----uuuu user ] [ ----ssss size ] [ ----LLLL latitude ]
[ ----MMMM longitude ] [ ----SSSS label ] [ ----mmmm mail-program ] [ ----ffff mail-file ]
[ ----CCCC envelope-counter ] [ ----BBBB beeper ] [ ----DDDD directory ] [ ----gggg XxY ] [ ----NNNN window name ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_m_a_i_l_b_o_x watches your mailbox, and notifies you when you have mail. It
displays a small picture of a mailbox to perform notification. The flag
on the mailbox rises whenever new mail messages appear in your mailbox.
You can open the mailbox and read your mail by clicking on the _m_a_i_l_b_o_x
window with the left mouse button. If one of the shift keys is held
down, or if you have no mail, the mailbox door simply opens without
running the mail reading program. Once you have finished reading your
mail, the mailbox flag goes down and the door closes.
The number of envelopes in the mailbox corresponds to the number of
messages in your mailbox. Manila envelopes represent five messages each.
Each normal letter-sized envelope represent one message. _m_a_i_l_b_o_x knows
how to count messages written by Berkeley and AT&T _m_a_i_l, and by _m_h.
_m_a_i_l_b_o_x also understands Content-Length headers.
The MAIL environment variable is used to determine where to watch for
mail. If this variable does not exist, the USER environment variable is
appended to the string "/usr/mail", and this file is used.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
----cccc Run in colormap mode. Ordinarily, the decision to display in
colormap mode is made on the basis of available graphics hardware.
----llll Run in lighted, RGB mode. This is currently a no-op.
----bbbb Don't beep when mail arrives.
----dddd Print out longitude and latitude on startup.
----uuuu _u_s_e_r
Watch the mail of a user other than yourself.
----mmmm _m_a_i_l__p_r_o_g_r_a_m
Execute the specified program when requested to. The argument
following the option must be a single string. This is generally
accomplished by putting double quotes around the string. If an
empty string is passed, _m_a_i_l_b_o_x simply opens and closes the mailbox
door when the window is clicked on.
The program string is executed by _s_y_s_t_e_m(3S), so environment
variables and other shell substitutions can be used in this string.
PPPPaaaaggggeeee 1111
mmmmaaaaiiiillllbbbbooooxxxx((((1111)))) mmmmaaaaiiiillllbbbbooooxxxx((((1111))))
Note that the program that is started by _m_a_i_l_b_o_x probably should
not be a program that reads from standard input and output, since
it tries to run in the shell window that started it. If such a
behavior is desired, the ----mmmm option starts a _w_s_h(1G) window to
contain the program. The default ----mmmm command used by _m_a_i_l_b_o_x is
_////_uuuu_ssss_rrrr_////_ssss_bbbb_iiii_nnnn_////_xxxx_wwww_ssss_hhhh _----_ffff_gggg _7777 _----_bbbb_gggg _9999_7777 _----_bbbb_oooo_llll_dddd _2222_3333_0000 _----_cccc_uuuu_rrrr_ssss_oooo_rrrr_ffff_gggg _9999_5555 _\\\\
_----_gggg_eeee_oooo_mmmm _8888_0000_xxxx_4444_0000 _----_nnnn_aaaa_mmmm_eeee _MMMM_aaaa_iiii_llll _----_hhhh_oooo_llll_dddd_oooo_nnnn_eeee_rrrr_rrrr_oooo_rrrr _----_eeee _////_uuuu_ssss_rrrr_////_ssss_bbbb_iiii_nnnn_////_MMMM_aaaa_iiii_llll
The environment variable MMMMAAAAIIIILLLLBBBBOOOOXXXXPPPPRRRROOOOGGGG can be set to specify a mail
program in the same manner as specifying the ----mmmm switch. If the
environment variable is set and the ----mmmm switch is not specified, the
environment variable determines the mail program. If the
environment variable is set and the ----mmmm switch is also specified,
the command line mail program overrides the setting of the
environment variable.
----ssss _s_i_z_e
Set the size of the window, in points. The default size is 96
points, or 1.33 inches. The _m_a_i_l_b_o_x window is always square.
----gggg _p_o_s_i_t_i_o_n
Set the position of the window in pixels. The position has the
following form: <X>x<Y> or <X>X<Y> where <X> is the X position in
pixels and <Y> is the Y position in pixels for the lower left
corner of the window. The origin is the lower left corner of
screen.
----LLLL _l_a_t_i_t_u_d_e
Specify the latitude where the mailbox is located. This is used to
determine the direction of the sun, and the times of sunset and
sunrise. Latitudes south of the equator are specified as a
negative number. If no latitude is specified, 37 degrees 30' N is
assumed. The latitude can also be specified through the
environment variable LATITUDE, which overrides the default
latitude, but is overridden by command-line options.
----MMMM _l_o_n_g_i_t_u_d_e
Specify the longitude where the mailbox is located. This is used
to determine the direction of the sun, and the times of sunset and
sunrise. The default longitude is 122 degrees west. Longitudes
are expressed as degrees west of Greenwich, England. Longitudes
east of Greenwich are specified as negative numbers. The longitude
can also be specified through the environment variable LONGITUDE,
which operates in the same way as LATITUDE.
----SSSS _l_a_b_e_l
Put a small sign on top of the mailbox with the specified label
printed on it. Unfortunately, the sign is hard to read if the
PPPPaaaaggggeeee 2222
mmmmaaaaiiiillllbbbbooooxxxx((((1111)))) mmmmaaaaiiiillllbbbbooooxxxx((((1111))))
window is small, due to resolution limits. If this bothers you,
make the mailbox bigger with the ----ssss option.
----NNNN _w_i_n_d_o_w _n_a_m_e
The window name is any string to be given the program as the name
or title. X resources can then be specified for <name> and refer
to this window.
----ffff _f_i_l_e
Specify that _m_a_i_l_b_o_x watch a file other than your system mailbox,
as though it were a mailbox. Note that _m_a_i_l_b_o_x only puts up the
flag if it determines that actual mail messages have been added to
the file, by counting the number of messages. However, the ----CCCC
option can be used to change the way that _m_a_i_l_b_o_x counts messages.
----CCCC _e_n_v_e_l_o_p_e-_c_o_u_n_t_e_r
_m_a_i_l_b_o_x usually counts the number of envelopes in your mailbox
every time that it notices that the mailbox has been touched. If
the number of envelopes is greater than the last time it checked,
it raises the flag. However, you can change _m_a_i_l_b_o_x's concept of
how to count envelopes by specifying an "envelope-counting"
program.
The name of the mail file being watched is appended to the
specified string, and the result is passed to _s_y_s_t_e_m(3S). The job
of the counting program is to call _e_x_i_t(2) with an argument that is
equal to the number of envelopes. If the counting program exits
with a negative status, or if it is stopped by a signal, the number
of envelopes is assumed to be zero. Because exit status is modulo
256, this is really only useful for mailboxes with less than 256
messages.
This option can be used to turn _m_a_i_l_b_o_x into a more general file-
watching program, in conjunction with the ----ffff and ----mmmm options.
----BBBB _b_e_e_p_e_r
_m_a_i_l_b_o_x usually beeps whenever it determines that new mail has
arrived. You can override this action by providing a "beeper"
program. Typical beeping programs might send data to /_d_e_v/_a_u_d_i_o.
The beeping program is a string that is passed to _s_y_s_t_e_m(3S).
----DDDD _d_i_r_e_c_t_o_r_y
This option tells _m_a_i_l_b_o_x to watch the named directory instead of a
file. When in this mode, _m_a_i_l_b_o_x assumes that each file in the
directory (except files whose names start with '.') is a mail
message. This mode is useful for users of the _m_h and _x_m_h(1) mail
handling programs who choose to have messages delivered directly
into folders using the features of _s_l_o_c_a_l. For example the
following command tells _m_a_i_l_b_o_x to watch the _m_h folder called _i_n_b_o_x
and to use _x_m_h as the mail reader.
PPPPaaaaggggeeee 3333
mmmmaaaaiiiillllbbbbooooxxxx((((1111)))) mmmmaaaaiiiillllbbbbooooxxxx((((1111))))
_mmmm_aaaa_iiii_llll_bbbb_oooo_xxxx _----_DDDD _~~~~_////_MMMM_aaaa_iiii_llll_////_iiii_nnnn_bbbb_oooo_xxxx _----_SSSS _iiii_nnnn_bbbb_oooo_xxxx _----_mmmm _""""_xxxx_mmmm_hhhh _----_iiii_nnnn_iiii_tttt_iiii_aaaa_llll _iiii_nnnn_bbbb_oooo_xxxx_""""
The arguments to _x_m_h tell it to start with _i_n_b_o_x as its initial
folder. This is its default. The arguments are included here for
illustration only.
When _x_m_h starts it reads each message in the folder in order to
look at its subject line. This fools _m_a_i_l_b_o_x into thinking you
have read the message, and thus the flag can be lowered
prematurely.
FFFFIIIILLLLEEEESSSS
/usr/sbin/Mail Default mail program if the ----mmmm switch is not specified
and $$$$MMMMAAAAIIIILLLLBBBBOOOOXXXXPPPPRRRROOOOGGGG is not set.
$MAILBOXPROG Default mail program if the ----mmmm switch is not
specified.
/usr/mail/$USER Default mail file if the ----ffff switch is not specified
and $$$$MMMMAAAAIIIILLLL is not set.
$MAIL Default mail file if the ----ffff switch is not specified.
AAAAUUUUTTTTHHHHOOOORRRR
Andrew Myers
SSSSEEEEEEEE AAAALLLLSSSSOOOO
chkconfig(1M), mail_att(1), mail_bsd(1), su(1M).
PPPPaaaaggggeeee 4444